package demo5.service;

import demo5.dao.IUserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService{
    @Autowired
    private IUserDao iUserDao;
    @Override
    public boolean login(String username,String password){
        System.out.println("UserService:用户登录信息校验中...");
        System.out.println("UserService:用户登录信息校验完成");
        System.out.println("UserService:用户信息校验结果返回...");
        boolean success = iUserDao.findUser();
        if(success){
            System.out.println("UserService:用户信息校验成功");
        }else {
            System.out.println("UserService:用户信息校验失败");
        }
        return success;
    }
}
